package chesskers;
import java.awt.Color;

import javax.swing.JFrame;

import menu.CheckDisplayPanel;
import menu.ChessDisplayPanel;
import menu.GameDisplayPanel;
import menu.LoadGameFrame;
import menu.MainMenuFrame;
import menu.MatchHistoryFrame;
import menu.PlayerSelectFrame;
import menu.TimeGameFrame;


public class UIManager extends Thread{
	
	public JFrame content;
	
	public void start() {
		switch (Driver.state) {
		case MainMenu:
			new MainMenuFrame();
			break;
		case HistoryCheck:
			new MatchHistoryFrame();
			break;
		case HistoryChess:
			new MatchHistoryFrame();
			break;
		case LoadChess:
			new LoadGameFrame();
			break;	
		case LoadCheck:
			new LoadGameFrame();
			break;	
		case TimeCheck:
			new TimeGameFrame();
			break;	
		case TimeChess:
			new TimeGameFrame();
			break;			
		case CheckSelect1:
			new PlayerSelectFrame();
			break;	
		case CheckSelect2:
			new PlayerSelectFrame();
			break;	
		case ChessSelect1:
			new PlayerSelectFrame();
			break;	
		case ChessSelect2:
			new PlayerSelectFrame();
			break;			
		case ChessGame:
			new ChessDisplayPanel();
			break;	
		case CheckGame:
			new CheckDisplayPanel();
			break;			
		}	
	}
}
